![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@smithy/eventstream-serde-node
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@smithy/eventstream-serde-node/latest.svg)](https://www.npmjs.com/package/@smithy/eventstream-serde-node) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/eventstream-serde-node.svg)](https://www.npmjs.c
@smithy/eventstream-serde-node is a package designed to handle serialization and deserialization of event streams in Node.js. It is part of the AWS SDK for JavaScript and is used to process event streams, which are sequences of events that can be transmitted over a network connection.
Serialization of Event Streams
This feature allows you to serialize an event stream into a format suitable for transmission. The code sample demonstrates how to create an instance of EventStreamMarshaller and use it to serialize an event.
const { EventStreamMarshaller } = require('@smithy/eventstream-serde-node');
const marshaller = new EventStreamMarshaller();
const event = { eventType: 'example', data: 'sample data' };
const serializedEvent = marshaller.marshall(event);
console.log(serializedEvent);
Deserialization of Event Streams
This feature allows you to deserialize an event stream back into its original format. The code sample shows how to use the EventStreamMarshaller to deserialize a serialized event.
const { EventStreamMarshaller } = require('@smithy/eventstream-serde-node');
const marshaller = new EventStreamMarshaller();
const serializedEvent = /* some serialized event data */;
const event = marshaller.unmarshall(serializedEvent);
console.log(event);
The 'event-stream' package provides a toolkit for working with streams in Node.js. It includes utilities for creating, manipulating, and consuming streams. While it is more general-purpose compared to @smithy/eventstream-serde-node, it can be used to handle event streams in a similar manner.
The 'stream-json' package is designed for processing JSON streams in Node.js. It provides tools for parsing and stringifying JSON data in a streaming fashion. Although it is focused on JSON, it offers similar functionality for handling streaming data as @smithy/eventstream-serde-node.
The 'node-eventstore-client' package is a client for EventStore, a database optimized for event sourcing. It provides APIs for reading and writing event streams to an EventStore database. This package is more specialized compared to @smithy/eventstream-serde-node, focusing on integration with EventStore.
FAQs
[![NPM version](https://img.shields.io/npm/v/@smithy/eventstream-serde-node/latest.svg)](https://www.npmjs.com/package/@smithy/eventstream-serde-node) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/eventstream-serde-node.svg)](https://www.npmjs.c
The npm package @smithy/eventstream-serde-node receives a total of 6,390,363 weekly downloads. As such, @smithy/eventstream-serde-node popularity was classified as popular.
We found that @smithy/eventstream-serde-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.